package com.example.demouser.controller.api;

import com.alispring.cloud.demo.entity.User;
import com.example.demouser.bizservice.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Controller
@RestController
@RequestMapping("/api")
public class UserApi {
    @Resource
    private UserService userService;

    @RequestMapping("/getUser")
    public User getUser() {
        return userService.queryById(66);
    }
}
